package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.entity.NursingPlan;
import com.zzyl.vo.NursingPlanVo;
import org.apache.ibatis.annotations.Mapper;
import com.zzyl.vo.NursingPlanVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.List;

@Mapper
public interface NursingPlanMapper {

    void delete(Long id);

    NursingPlanVo getNursingPlanById(Long id);

    Page<NursingPlanVo> selectByPage(String name, Integer status);

    void updateNursingPlan(NursingPlan nursingPlan);

    List<NursingPlanVo> getAllNursingPlan();

    void addNursingPlan(NursingPlan nursingPlan);

    void updateNursingPlanStatus(@Param("id") Long id,@Param("status") Integer status);

    NursingPlan getNursingPlanByPlanName(String planName);
}
